@import '@/style/extend.scss';

.category-box {
  height: 100%;
  padding-bottom: 90px;
  overflow-y: hidden;
}

.category-switch-top-nav {
  height: 40px;
  background: #ee742f;
  display: flex;
  justify-content: center;
  align-items: center;
  > ul {
    position: relative;
    width: 160px;
    height: 30px;
    display: flex;
    z-index: 0;
    border-radius: 15px;
    &::before {
      @extend .border1px;
    }
    li {
      flex: 1;
      line-height: 30px;
      text-align: center;
      color: #fff;
      z-index: 2;
      &:last-child {
        position: absolute;
        width: 50%;
        height: 30px;
        background: #fff;
        z-index: -1;
        border-radius: 15px;
        transform: translateX(0);
        transition: all 0.4s;
      }
      &.active {
        color: #ee742f;
        transition: all 0.4s;
      }
      &.right {
        transform: translateX(100%);
      }
    }
  }
}

.category-content {
  height: 100%;
  overflow-y: hidden;
  display: flex;
  .left {
    width: 90px;
    background: #f3f3f3;
    height: 100%;
    overflow-y: auto;
    ul {
      height: 100%;
      overflow-y: auto;
      // 隐藏滚动条
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;

      &::-webkit-scrollbar {
        display: none;
      }
      li {
        height: 50px;
        line-height: 50px;
        text-align: center;
        &.active {
          background: #fff;
          span {
            display: inline-block;
            height: 100%;
            position: relative;
            &::after {
              @extend .borderBottom1px;
            }
          }
        }
      }
    }
  }

  .right {
    flex: 1;
    padding: 0px 10px;
    box-sizing: border-box;
    height: 100%;
    overflow-y: hidden;
    ul {
      display: flex;
      flex-wrap: wrap;
      overflow-y: auto;
      height: 100%;
      // 换行后有多列，则需要添加此flex属性
      align-content: flex-start;
      // 隐藏滚动条
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
      &::-webkit-scrollbar {
        display: none;
      }
      li {
        width: 33.3333%;
        text-align: center;
        height: 50px;
        line-height: 50px;
        color: #666;
      }
    }
  }
}
